home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_098 / thai / thaichars.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  102 lines

  1.  
  2. /* Thai character set */
  3.  
  4.  
  5. #define TC_MIN_CHAR    65
  6. #define TC_MAX_CHAR    128
  7.  
  8.  
  9. extern USHORT ist[ TC_MAX_CHAR ];
  10.  
  11. #define IST_SHORT_VOWEL    0x01
  12. #define IST_LONG_VOWEL    0x02
  13. #define IST_LOW            0x04
  14. #define IST_MIDDLE        0x08
  15. #define IST_HIGH        0x10
  16. #define IST_COMMAND        0x20
  17. #define IST_PUNCTUATION    0x40
  18. #define IST_REVERSE        0x80
  19. #define IST_AFTER_VOWEL    0x100
  20.  
  21. #define isthai(c)        (ist[c]&(IST_SHORT_VOWEL|IST_LONG_VOWEL|IST_LOW|IST_MIDDLE|IST_HIGH|IST_COMMAND|IST_PUNCTUATION))
  22. #define isvowel(c)        (ist[c]&(IST_SHORT_VOWEL|IST_LONG_VOWEL))
  23. #define isaftervowel(c)    (ist[c]&IST_AFTER_VOWEL)
  24. #define isshortvowel(c)    (ist[c]&IST_SHORT_VOWEL)
  25. #define islongvowel(c)    (ist[c]&IST_LONG_VOWEL)
  26. #define isconsonant(c)    (ist[c]&(IST_LOW|IST_MIDDLE|IST_HIGH))
  27. #define isreverse(c)    (ist[c]&IST_REVERSE)
  28. #define islow(c)        (ist[c]&IST_LOW)
  29. #define ismiddle(c)        (ist[c]&IST_MIDDLE)
  30. #define ishigh(c)        (ist[c]&IST_HIGH)
  31.  
  32. #define TC_MAI_DTAI_DOO    '8'
  33. #define TC_MAI_TAHN_DTAH_KAHT    '9'
  34. #define TC_BPAI_YAHN_NAWY    ':'
  35. #define TC_MAI_YAMOK    ';'
  36. #define TC_MAI_EHK        '<'
  37. #define TC_MAI_TOH        '='
  38. #define TC_MAI_DTREE    '>'
  39. #define TC_MAI_JATTAWA    '?'
  40. #define TC_SPACE        '@'
  41. #define TC_GAW            'A'
  42. #define TC_KAW_KAI        'B'
  43. #define TC_KAW_KUAT        'C'
  44. #define TC_KAW_KWAI        'D'
  45. #define TC_KAW_KOHN        'E'
  46. #define TC_KAW_RAH_KAHNG    'F'
  47. #define TC_NGAW            'G'
  48. #define TC_JAW            'H'
  49. #define TC_CHAW            'I'
  50. #define TC_CHAW_CHANG    'J'
  51. #define TC_SAW            'K'
  52. #define TC_CHAW_CHUH    'L'
  53. #define TC_YAW_YEENG    'M'
  54. #define TC_DAW_CHAH_DAH    'N'
  55. #define TC_DTAW_BPAH_DTAHK    'O'
  56. #define TC_TAW_TAHN        'P'
  57. #define TC_TAW_MOHN_TOH    'Q'
  58. #define TC_TAW_POO_TAO    'R'
  59. #define TC_NAW_NEHN        'S'
  60. #define TC_DAW_DEHK        'T'
  61. #define TC_DTAW_DTAO    'U'
  62. #define TC_TAW_TOONG    'V'
  63. #define TC_TAW_TAH_HAHN    'W'
  64. #define TC_TAW_TOHNG    'X'
  65. #define TC_NAW_NOO        'Y'
  66. #define TC_BAW            'Z'
  67. #define TC_BPAW            '['
  68. #define TC_PAW            '\\'
  69. #define TC_FAW_HIGH        ']'
  70. #define TC_PAW_PAHN        '^'
  71. #define TC_FAW            '_'
  72. #define TC_PAW_SAHM_PAO    '`'
  73. #define TC_MAW            'a'
  74. #define TC_YAW_YAHK        'b'
  75. #define TC_RAW_REUA        'c'
  76. #define TC_LAW_LEENG    'd'
  77. #define TC_WAW            'e'
  78. #define TC_SAW_SAH_LAH    'f'
  79. #define TC_SAW_REU_SEE    'g'
  80. #define TC_SAW_SEUA        'h'
  81. #define TC_HAW            'i'
  82. #define TC_LAW_JOOH_LAH    'j'
  83. #define TC_AW            'k'
  84. #define TC_HAH            'l'
  85. #define TC_SHORT_AH        'm'
  86. #define TC_SHORT_AH_ABOVE    'n'
  87. #define TC_LONG_AH        'p'
  88. #define TC_AHM            'q'
  89. #define TC_IH            'r'
  90. #define TC_EE            's'
  91. #define TC_SHORT_EU        't'
  92. #define TC_LONG_EU        'u'
  93. #define TC_SHORT_OO        'v'
  94. #define TC_LONG_OO        'w'
  95. #define TC_EH            'x'
  96. #define TC_SEMI_VOWEL    'y'
  97. #define TC_OH            '{'
  98. #define TC_AI20            '|'
  99. #define TC_AI            '}'
  100. #define TC_BACK_SPACE    0x7E
  101. #define TC_CLEAR        0x7F
  102.